package com.zqweb.gulimall.product.feign;

import com.zqweb.common.utils.R;
import com.zqweb.gulimall.product.feign.fallback.SeckillFeignFallback;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

@FeignClient(value = "guli-mall-seckill",fallback = SeckillFeignFallback.class)
public interface SeckillFeignService {
    @GetMapping("/getSeckillSkusInfo/{skuId}")
    // 获取指定skuId所关联的秒杀商品（包含优惠信息）
    R getSeckillSkusInfoBySkuId(@PathVariable("skuId") Long skuId);
}
